<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var obj = new Object();
        obj.name = '连浩伟';
        obj.sex = '男';
        obj.age = 20;
        obj.saihai = function() {
            console.log('方法');
        }
        obj.saihai()
    </script>
</head>

<body>

</body>

</html>